package com.study.model.pojo.HRpojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * The persistent class for the emp_tab database table.
 * 
 */
@Entity
@Table(name="emp_tab")
@NamedQuery(name="EmpTab.findAll", query="SELECT e FROM EmpTab e")
public class EmpTab implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String empid;

	private String appremark;

	private int deptid;

	private int empaccstate;

	@Temporal(TemporalType.TIMESTAMP)
	private Date empbirth;

	private String empcalladd;

	private String empcardid;

	private String empemail;

	private int empface;

	private String empinadd;

	@Temporal(TemporalType.TIMESTAMP)
	private Date empindate;

	private int empmarried;

	private String empname;

	private String empnative;

	private String emppass;

	private String empphoto;

	private String empqq;

	private int empsex;

	private String empship;

	private int empstate;

	private String emptel;

	@Temporal(TemporalType.TIMESTAMP)
	private Date empworker;

//bi-directional many-to-one association to DeptTab
  @JsonIgnore
  @ManyToOne
  @JoinColumn(name="deptid")
  private DeptTab deptTab;

  //bi-directional many-to-many association to RoleTab
  @JsonIgnore
  @ManyToMany
  @JoinTable(
    name="emp_role",//中间表名
    joinColumns={@JoinColumn(name="empid")},//当前对象id在中间表的列名
    inverseJoinColumns={@JoinColumn(name="roleid")}//关联的另一个表在中间表的列名
   )
  private Set<RoleTab> roleTabs = new HashSet<RoleTab>(0);

	public EmpTab() {
	}

	public String getEmpid() {
		return this.empid;
	}

	public void setEmpid(String empid) {
		this.empid = empid;
	}

	public String getAppremark() {
		return this.appremark;
	}

	public void setAppremark(String appremark) {
		this.appremark = appremark;
	}

	public int getDeptid() {
		return this.deptid;
	}

	public void setDeptid(int deptid) {
		this.deptid = deptid;
	}

	public int getEmpaccstate() {
		return this.empaccstate;
	}

	public void setEmpaccstate(int empaccstate) {
		this.empaccstate = empaccstate;
	}

	public Date getEmpbirth() {
		return this.empbirth;
	}

	public void setEmpbirth(Date empbirth) {
		this.empbirth = empbirth;
	}

	public String getEmpcalladd() {
		return this.empcalladd;
	}

	public void setEmpcalladd(String empcalladd) {
		this.empcalladd = empcalladd;
	}

	public String getEmpcardid() {
		return this.empcardid;
	}

	public void setEmpcardid(String empcardid) {
		this.empcardid = empcardid;
	}

	public String getEmpemail() {
		return this.empemail;
	}

	public void setEmpemail(String empemail) {
		this.empemail = empemail;
	}

	public int getEmpface() {
		return this.empface;
	}

	public void setEmpface(int empface) {
		this.empface = empface;
	}

	public String getEmpinadd() {
		return this.empinadd;
	}

	public void setEmpinadd(String empinadd) {
		this.empinadd = empinadd;
	}

	public Date getEmpindate() {
		return this.empindate;
	}

	public void setEmpindate(Date empindate) {
		this.empindate = empindate;
	}

	public int getEmpmarried() {
		return this.empmarried;
	}

	public void setEmpmarried(int empmarried) {
		this.empmarried = empmarried;
	}

	public String getEmpname() {
		return this.empname;
	}

	public void setEmpname(String empname) {
		this.empname = empname;
	}

	public String getEmpnative() {
		return this.empnative;
	}

	public void setEmpnative(String empnative) {
		this.empnative = empnative;
	}

	public String getEmppass() {
		return this.emppass;
	}

	public void setEmppass(String emppass) {
		this.emppass = emppass;
	}

	public String getEmpphoto() {
		return this.empphoto;
	}

	public void setEmpphoto(String empphoto) {
		this.empphoto = empphoto;
	}

	public String getEmpqq() {
		return this.empqq;
	}

	public void setEmpqq(String empqq) {
		this.empqq = empqq;
	}

	public int getEmpsex() {
		return this.empsex;
	}

	public void setEmpsex(int empsex) {
		this.empsex = empsex;
	}

	public String getEmpship() {
		return this.empship;
	}

	public void setEmpship(String empship) {
		this.empship = empship;
	}

	public int getEmpstate() {
		return this.empstate;
	}

	public void setEmpstate(int empstate) {
		this.empstate = empstate;
	}

	public String getEmptel() {
		return this.emptel;
	}

	public void setEmptel(String emptel) {
		this.emptel = emptel;
	}

	public Date getEmpworker() {
		return this.empworker;
	}

	public void setEmpworker(Date empworker) {
		this.empworker = empworker;
	}

	public DeptTab getDeptTab() {
		return this.deptTab;
	}

	public void setDeptTab(DeptTab deptTab) {
		this.deptTab = deptTab;
	}

  public Set<RoleTab> getRoleTabs() {
    return roleTabs;
  }

  public void setRoleTabs(Set<RoleTab> roleTabs) {
    this.roleTabs = roleTabs;
  }
	
}